home *** CD-ROM | disk | FTP | other *** search
/ Amiga Format CD 7 / Amiga Format AFCD07 (Dec 1996, Issue 91).iso / serious / shareware / programming / emacs-complete / fsf / emacs / src / m / hp9000s300.h < prev    next >
C/C++ Source or Header  |  1994-10-05  |  7KB  |  242 lines

  1. /* machine description file for hp9000 series 200 or 300 on either HPUX or BSD.
  2.    Copyright (C) 1985 Free Software Foundation, Inc.
  3.  
  4. This file is part of GNU Emacs.
  5.  
  6. GNU Emacs is free software; you can redistribute it and/or modify
  7. it under the terms of the GNU General Public License as published by
  8. the Free Software Foundation; either version 2, or (at your option)
  9. any later version.
  10.  
  11. GNU Emacs is distributed in the hope that it will be useful,
  12. but WITHOUT ANY WARRANTY; without even the implied warranty of
  13. MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
  14. GNU General Public License for more details.
  15.  
  16. You should have received a copy of the GNU General Public License
  17. along with GNU Emacs; see the file COPYING.  If not, write to
  18. the Free Software Foundation, 675 Mass Ave, Cambridge, MA 02139, USA.  */
  19.  
  20.  
  21. /* The following line tells the configuration script what sort of 
  22.    operating system this machine is likely to run.
  23.    USUAL-OPSYS="note"
  24.  
  25. NOTE-START
  26. HP 9000 series 200 or 300 (-machine=hp9000s300)
  27.  
  28.   These machines are 68000-series CPUs running HP-UX
  29.   (a derivative of sysV with some BSD features) or BSD 4.3 ported by Utah.
  30.  
  31.   If you're running HP-UX, specify `-opsystem=hpux'.
  32.   If you're running BSD, specify `-opsystem=bsd4-3'.
  33. NOTE-END */
  34.  
  35. /* I don't understand why we have to do this at all!  -JimB */
  36. #if 0
  37.  
  38. /* Do this here at the top of the file; including sys/wait.h may
  39.    include <endian.h>, which defines BIG_ENDIAN, which will conflict
  40.    with our definition of BIG_ENDIAN if we do this at the bottom.  */
  41. #ifndef NOT_C_CODE
  42. #ifndef NO_SHORTNAMES
  43. #include <sys/wait.h>
  44. #define WAITTYPE int
  45. #endif
  46. #define WRETCODE(w) (((w) >> 8) & 0377)
  47. #endif
  48.  
  49. #endif
  50.  
  51. /* Define NOMULTIPLEJOBS on versions of HPUX before 6.5.  */
  52.  
  53. /* #define NOMULTIPLEJOBS */
  54.  
  55. /* Define this symbol if you are running a version of HP-UX
  56.    which predates version 6.01 */
  57.  
  58. /* #define HPUX_5 */
  59.  
  60. /* The following three symbols give information on
  61.  the size of various data types.  */
  62.  
  63. #define SHORTBITS 16        /* Number of bits in a short */
  64.  
  65. #define INTBITS 32        /* Number of bits in an int */
  66.  
  67. #define LONGBITS 32        /* Number of bits in a long */
  68.  
  69. /* Define BIG_ENDIAN iff lowest-numbered byte in a word
  70.    is the most significant byte.  */
  71. /* Under BSD, <endian.h> defines this to be 4321; rather than fight with it,
  72.    we'll just give in.  Compatibility, akido style.  */
  73. #ifndef BIG_ENDIAN
  74. #define BIG_ENDIAN 4321
  75. #endif
  76.  
  77. /* Define NO_ARG_ARRAY if you cannot take the address of the first of a
  78.  * group of arguments and treat it as an array of the arguments.  */
  79.  
  80. /* #define NO_ARG_ARRAY */
  81.  
  82. /* Define WORD_MACHINE if addresses and such have
  83.  * to be corrected before they can be used as byte counts.  */
  84.  
  85. /* #define WORD_MACHINE */
  86.  
  87. /* Now define a symbol for the cpu type, if your compiler
  88.    does not define it automatically.  */
  89.  
  90. #ifndef hp9000s300
  91. #define hp9000s300
  92. #endif
  93.  
  94. /* Use type int rather than a union, to represent Lisp_Object */
  95. /* This is desirable for most machines.  */
  96.  
  97. #define NO_UNION_TYPE
  98.  
  99. /* Define EXPLICIT_SIGN_EXTEND if XINT must explicitly sign-extend
  100.    the 24-bit bit field into an int.  In other words, if bit fields
  101.    are always unsigned.
  102.  
  103.    If you use NO_UNION_TYPE, this flag does not matter.  */
  104.  
  105. #define EXPLICIT_SIGN_EXTEND
  106.  
  107. /* Define CANNOT_DUMP on machines where unexec does not work.
  108.    Then the function dump-emacs will not be defined
  109.    and temacs will do (load "loadup") automatically unless told otherwise.  */
  110.  
  111. /* #define CANNOT_DUMP */
  112.  
  113. /* Define VIRT_ADDR_VARIES if the virtual addresses of
  114.    pure and impure space as loaded can vary, and even their
  115.    relative order cannot be relied on.
  116.  
  117.    Otherwise Emacs assumes that text space precedes data space,
  118.    numerically.  */
  119.  
  120. /* #define VIRT_ADDR_VARIES */
  121.  
  122. /* For University of Utah 4.3bsd implementation on HP300s.
  123.    The #ifndef __GNUC__ definitions are required for the "standard" cc,
  124.    a very old, brain-dead version of PCC. */
  125.  
  126. #ifdef BSD4_3
  127.  
  128. /* Tell crt0.c that this is an ordinary 68020.  */
  129. #undef hp9000s300
  130. #define m68000
  131.  
  132. #define CRT0_DUMMIES        bogus_a6,
  133.  
  134. #define HAVE_ALLOCA
  135.  
  136. #ifndef __GNUC__
  137. #define LIBS_DEBUG        /* don't have -lg that works */
  138. #define C_DEBUG_SWITCH        /* don't support -g */
  139. #endif
  140.  
  141. #undef LOAD_AVE_TYPE
  142. #undef LOAD_AVE_CVT
  143. #define LOAD_AVE_TYPE long
  144. #define LOAD_AVE_CVT(x) ((int) (((double) (x)) / 2048.0 * 100.0))
  145.  
  146. #endif /* BSD4_3 */
  147.  
  148. #ifndef BSD4_3
  149. /* The following definitions are for HPUX only.  */
  150.  
  151. /* The symbol in the kernel where the load average is found
  152.    is named _avenrun on this machine.  */
  153.  
  154. #define LDAV_SYMBOL "_avenrun"
  155.  
  156. /* Data type of load average, as read out of kmem.  */
  157.  
  158. #define LOAD_AVE_TYPE double
  159.  
  160. /* Convert that into an integer that is 100 for a load average of 1.0  */
  161.  
  162. #define LOAD_AVE_CVT(x) ((int) ((x) * 100.0))
  163.  
  164. #ifdef __GNUC__
  165. #define HAVE_ALLOCA
  166. #endif
  167.  
  168. /* This library is needed with -g, on the 200/300 only.  */
  169.  
  170. #if !defined(__GNUC__) || defined(__HPUX_ASM__)
  171. #define LIBS_DEBUG /usr/lib/end.o
  172. #endif
  173.  
  174. /* Need a TEXT_START.  On the HP9000/s300 that is 0.  */
  175. #ifdef __GNUC__
  176. #define TEXT_START   0
  177. #endif
  178.  
  179. /* The symbol FIONREAD is defined, but the feature does not work
  180.    on the 200/300.  */
  181.  
  182. #define BROKEN_FIONREAD
  183.  
  184. /* In older versions of hpux, for unknown reasons, S_IFLNK is defined
  185.    even though symbolic links do not exist.
  186.    Make sure our conditionals based on S_IFLNK are not confused.
  187.  
  188.    Here we assume that stat.h is included before config.h
  189.    so that we can override it here.
  190.  
  191.    Version 6 of HP-UX has symbolic links.  */
  192.  
  193. #ifdef HPUX_5
  194. #undef S_IFLNK
  195. #endif
  196.  
  197. /* Define the BSTRING functions in terms of the sysV functions.
  198.    Version 6 of HP-UX supplies these in the BSD library,
  199.    but that library has reported bugs in `signal'.  */
  200.  
  201. /* #ifdef HPUX_5 */
  202. #define bcopy(a,b,s)    memcpy (b,a,s)
  203. #define bzero(a,s)    memset (a,0,s)
  204. #define bcmp        memcmp
  205. /* #endif */
  206.  
  207. /* On USG systems these have different names.
  208.    Version 6 of HP-UX supplies these in the BSD library,
  209.    which we currently want to avoid using.  */
  210.  
  211. /* #ifdef HPUX_5 */
  212. #define index strchr
  213. #define rindex strrchr
  214. /* #endif */
  215.  
  216. /* Define C_SWITCH_MACHINE to be +X if you want the s200/300
  217.  * Emacs to run on both 68010 and 68020 based hp-ux's.
  218.  *
  219.  * Define OLD_HP_ASSEMBLER if you have an ancient assembler
  220.  *
  221.  * Define HPUX_68010 if you are using the new assembler but
  222.  * compiling for a s200 (upgraded) or s310.  68010 based
  223.  * processor without 68881.
  224.  */
  225.  
  226. /* These switches increase the size of some internal C compiler tables.
  227.    They are required for compiling the X11 interface files. */
  228.  
  229. #ifndef HPUX_5
  230. #ifndef __GNUC__
  231. #define C_SWITCH_MACHINE -Wc,-Nd4000,-Ns3000
  232. #endif
  233. #endif
  234.  
  235. /* Define NEED_BSDTTY if you have such. */
  236.  
  237. #ifndef NOMULTIPLEJOBS
  238. #define NEED_BSDTTY
  239. #endif
  240.  
  241. #endif /* not BSD4_3 */
  242.